
export const state = () => ({
  token: null
})

export const mutations = {
  setData(state, n) {
    state.token = "test"
  },
  getData(state) {
    return state.token
  }
}


// global actions
export const actions = {
  // 全局服务初始化
  async nuxtServerInit(store) {
    store.commit('setData')
  }
}